// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addAppointment POST /api/appointment/add */
export async function addAppointmentUsingPost(
  body: API.AppointmentAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/appointment/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteAppointment POST /api/appointment/delete */
export async function deleteAppointmentUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/appointment/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** editAppointment POST /api/appointment/edit */
export async function editAppointmentUsingPost(
  body: API.AppointmentEditRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/appointment/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getAppointmentById GET /api/appointment/get */
export async function getAppointmentByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getAppointmentByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseAppointment_>('/api/appointment/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getAppointmentVOById GET /api/appointment/get/vo */
export async function getAppointmentVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getAppointmentVOByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseAppointmentVO_>('/api/appointment/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** handleAppointment POST /api/appointment/handle */
export async function handleAppointmentUsingPost(
  body: API.AppointmentUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/appointment/handle', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listAppointmentByPage POST /api/appointment/list/page */
export async function listAppointmentByPageUsingPost(
  body: API.AppointmentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAppointment_>('/api/appointment/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listAppointmentVOByPage POST /api/appointment/list/page/vo */
export async function listAppointmentVoByPageUsingPost(
  body: API.AppointmentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAppointmentVO_>('/api/appointment/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listMyAppointmentVOByPage POST /api/appointment/my/list/page/vo */
export async function listMyAppointmentVoByPageUsingPost(
  body: API.AppointmentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAppointmentVO_>('/api/appointment/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listTeacherAppointmentVOByPage POST /api/appointment/teacher/list/page/vo */
export async function listTeacherAppointmentVoByPageUsingPost(
  body: API.AppointmentQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageAppointmentVO_>('/api/appointment/teacher/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateAppointment POST /api/appointment/update */
export async function updateAppointmentUsingPost(
  body: API.AppointmentUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/appointment/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
